import { useNavigate } from 'react-router-dom';

export const useGoDetail = () => {
  const navigate = useNavigate();
  const goDetail = (id: number) => {
    return () => {
      navigate(`/goods_detail/${id}`);
    };
  };
  return {
    goDetail,
  };
};
